<?php
/*
===========================================================================

  Copyright (c) 2010-2012 DSPWeb Development Team

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see http://www.gnu.org/licenses/

  This file is part of DSPWeb source code

===========================================================================
*/

if (!empty($success)) {
	$output .= '
	<table cellpadding=0 cellspacing=0 width="45%" border="0" style="border: 1px solid #06F; border-radius: 5px; background-color: #0CF; color: #06F; font-family: Verdana; font-size: 12px;">
	  <tr>
		<td style="border-right: 1px solid #060; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">!</td>
		<td style="padding: 5px; vertical-align: middle; text-align: center;">Character created successfully! <a href="characters.php">Continue</a></td>
	  </tr>
	</table>
	</center>
	';
}
else {
	$output .= '
	<form method="post" action="characters.php">
	<input type="hidden" name="char" value="1">
	<input type="hidden" name="page" value="Create Character">
	<input type="hidden" name="create" value="1">';
	if (!empty($error)) {
		$output .= '
		<table cellpadding=0 cellspacing=0 width="45%" border="0" style="border: 1px solid #F00; border-radius: 5px; background-color: #FFA8A8; color: #F00; font-family: Verdana; font-size: 12px;">
		  <tr>
			<td style="border-right: 1px solid #F00; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">!</td>
			<td style="padding: 5px; vertical-align: middle; text-align: center;">'.$error.'</td>
		  </tr>
		</table>
		</center>';
	}

	$output .= '
	<form method="post" action="characters.php">
<input type="hidden" name="char" value="1">
<input type="hidden" name="page" value="Create Character">
<input type="hidden" name="create" value="1">
	<br />
	<center><table width="85%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
	  <tr>
		<td style="background-color: #f1f3f5; border-bottom: 1px solid #c0c0c0; padding: 5px; font-weight: bold; font-size: 12px; color: #3f6fbc;">Character Creation</td>
	  </tr>
	  <tr>
		<td style="padding: 10px;">
		<center><table  border="0" style="border: 1px solid #c0c0c0; background-color: #F1F3F5;" cellpadding=0 cellspacing=0>
	  <tr>
		<td style="padding: 5px; font-weight: bold; font-size: 12px; text-align: right;">Character Name:</td>
		<td style="padding: 5px; font-weight: bold; font-size: 12px;"><input type="text" name="charname"></td>
	  </tr>
	  <tr>
		<td style="padding: 5px; font-weight: bold; font-size: 12px; text-align: right;">Race [<a href="help.php#race">?</a>]:</td>
		<td style="padding: 5px; font-size: 12px;"><input type="radio" name="race" value="hume">
	Hume<br>
	<input type="radio" name="race" value="elvaan">
	Elvaan<br>
	<input type="radio" name="race" value="taru">
	Tarutaru<br>
	<input type="radio" name="race" value="galka">
	Galka<br>
	<input type="radio" name="race" value="mithra">
	Mithra</td>
	  </tr>
	  <tr>
		<td style="padding: 5px; font-weight: bold; font-size: 12px; text-align: right;">Gender:</td>
		<td style="padding: 5px; font-size: 12px;"><input type="radio" name="gender" value="male">
		  Male<br>
		  <input type="radio" name="gender" value="female">
		  Female</td>
	  </tr>
	  <tr>
		<td style="padding: 5px; font-weight: bold; font-size: 12px; text-align: right;">Hair Type [<a href="help.php#hair">?</a>]:</td>
		<td style="padding: 5px; font-size: 12px;"><input type="radio" name="hair" value="a">
		  A<br>
		  <input type="radio" name="hair" value="b">
		  B</td>
	  </tr>
	  <tr>
		<td style="padding: 5px; font-weight: bold; font-size: 12px; text-align: right;">Face [<a href="help.php#face">?</a>]:</td>
		<td style="padding: 5px; font-size: 12px;"><input type="radio" name="face" value="1">
		  1
		  <input type="radio" name="face" value="2">
		  2
		  <input type="radio" name="face" value="3">
		  3
		  <input type="radio" name="face" value="4">
		  4
		  <br>
		  <input type="radio" name="face" value="5">
		  5
		  <input type="radio" name="face" value="6">
		  6
		  <input type="radio" name="face" value="7">
		  7
		  <input type="radio" name="face" value="8">
		  8</td>
	  </tr>
	  <tr>
		<td style="padding: 5px; font-weight: bold; font-size: 12px; text-align: right;">Size:</td>
		<td style="padding: 5px; font-size: 12px;"><input type="radio" name="size" value="small">
		  Small 
			<input type="radio" name="size" value="medium">
			Medium 
			<input type="radio" name="size" value="large">
			Large</td>
	  </tr>
	  <tr>
		<td style="padding: 5px; font-weight: bold; font-size: 12px; text-align: right;">Allegiance:</td>
		<td style="padding: 5px; font-size: 12px;"><input type="radio" name="faction" value="sandoria">
		  San D\'oria<br>
		  <input type="radio" name="faction" value="windurst">
		  Windurst<br>
		  <input type="radio" name="faction" value="bastok">
		  Bastok</td>
	  </tr>
	  <tr>
		<td style="padding: 5px; font-weight: bold; font-size: 12px; text-align: right;">Main Job [<a href="help.php#job">?</a>]:</td>
		<td style="padding: 5px; font-size: 12px;"><input type="radio" name="job" value="war">
		  Warrior<br>
		  <input type="radio" name="job" value="mnk">
		  Monk<br>
		  <input type="radio" name="job" value="whm">
		  White Mage<br>
		  <input type="radio" name="job" value="blm">
		  Black Mage<br>
		  <input type="radio" name="job" value="rdm">
		  Red Mage<br>
		  <input type="radio" name="job" value="thf">
		  Thief</td>
	  </tr>
	  <tr>
		<td style="padding: 5px; font-weight: bold; font-size: 12px;">&nbsp;</td>
		<td style="padding: 5px; font-weight: bold; font-size: 12px;">&nbsp;</td>
	  </tr>
	  <tr>
		<td colspan="2" style="padding: 5px; font-weight: bold; font-size: 12px;"><center><input type="submit" value="Create Character">  
			<input type="reset" value="Clear"></center></td>
		</tr>
		</table>
		</center></td>
	  </tr>
	</table></center></form>';
}
?>